package cn.zebra.dev.member.module.address.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户地址表
 */
@TableName("member_address")
@Getter
@Setter
public class MemberAddressEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden = true)
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(hidden = true)
    private Long memberId;

    @ApiModelProperty("收件人")
    private String recipientName;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("省名称")
    private String province;

    @ApiModelProperty("市名称")
    private String city;

    @ApiModelProperty("县/区名称")
    private String area;

    @ApiModelProperty("详细地址")
    private String addressInfo;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("是否默认")
    private Boolean defaultFlag = false;

    @ApiModelProperty(hidden = true)
    private Boolean deleteFlag;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
